/**
 * Created by zengy on 2017/6/12.
 */
var http = HttpRequest.prototype;
//医生列表
http.getDoctorList = function (params,cb) {
    var opts = {
        url : baseUrl + '/doctorManager/getDocList',
        type : 'POST',
        data:params
    };
    this.baseRequest(cb,opts);
}
//【关闭/打开】医生服务
http.changeDoctorService=function (params,cb) {
    var opts={
        url : baseUrl + '/doctorManager/changeDoctorService',
        type : 'POST',
        data:params
    }
    this.baseRequest(cb,opts);
}
//获取医生排班信息
http.getDoctorSchedualMsg=function (params,cb) {
    var opts={
        url : baseUrl + '/doctorManager/getDoctorSchedualMsg',
        type : 'POST',
        data:params
    }
    this.baseRequest(cb,opts);
}
//设置医生排班数据（【更新/添加】）
http.insertOrUpdDoctorSchedualMsg=function (params,cb) {
    var opts={
        url : baseUrl + '/doctorManager/insertOrUpdDoctorSchedualMsg',
        type : 'POST',
        data:params
    }
    this.baseRequest(cb,opts);
}
//获取电话咨询信息
http.getDoctorCallMsg=function (params,cb) {
    var opts={
        url : baseUrl + '/doctorManager/getDoctorCallMsg',
        type : 'POST',
        data:params
    }
    this.baseRequest(cb,opts);
}
//电话咨询设置【更新/添加】

http.insertOrUpdDoctorCallMsg=function (params,cb) {
    var opts={
        url : baseUrl + '/doctorManager/insertOrUpdDoctorCallMsg',
        type : 'POST',
        data:params
    }
    this.baseRequest(cb,opts);
}
//删除某时段医生排班信息
http.deleteDoctorSchedualMsg=function (params,cb) {
    var opts={
        url : baseUrl + '/doctorManager/deleteDoctorSchedualMsg',
        type : 'POST',
        data:params
    }
    this.baseRequest(cb,opts);
}
//
http.queryEnableAddress=function (cb) {
    var opts={
        url : baseUrl + '/manager/address/queryEnableAddress',
        type : 'POST',
    }
    this.baseRequest(cb,opts);
}
http.changeDoctorServiceV2=function (params,cb) {
    var opts={
        url : baseUrl + '/doctorManager/changeDoctorService_v2',
        type : 'POST',
        data:params
    }
    this.baseRequest(cb,opts);
}